package com.org.service.impl;

import java.util.Map;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.org.dao.IProductParameterDao;
import com.org.model.Parameter;
import com.org.service.IProductParameterService;

@Service
public class ProductParameterServiceImpl implements IProductParameterService {

	@Autowired
	private IProductParameterDao productParameterDao;

	@Override
	public void deleteProductParameterById(String primaryKey) throws Exception {
		productParameterDao.deleteProductParameterById(primaryKey);

	}

	@Override
	public boolean getIsExistParameter(String parameter) throws Exception {
		return productParameterDao.getIsExistParameter(parameter);
	}

	@Override
	public Parameter getProductParameterById(String primaryKey)
			throws Exception {
		return productParameterDao.getProductParameterById(primaryKey);
	}

	@Override
	public Map<String, Object> getProductParameterLists(
			Map<String, Object> params) throws Exception {
		return productParameterDao.getProductParameterLists(params);
	}

	@Override
	public void insertProductParameter(Parameter entity) throws Exception {
		productParameterDao.insertProductParameter(entity);
	}

	@Override
	public void updateProductParameterById(Parameter entity) throws Exception {
		productParameterDao.updateProductParameterById(entity);
	}
}
